<include path="header" />
<div class="m-title">
    <ul>
      <li><a href="/knowledge/index" class="select">知识管理</a></li>
      <li><a href="/knowledge">我的主题</a></li> 
      <li></li>
    </ul>
</div>
	<div class="box">
    	<div class="searchbox">
          <form action="/knowledge/search" method="get">    
            
            <div>
                <input type="text" id="search" name="search" />
				<input type="submit" class="button" value="搜索" />
            </div>                    
            <span>在添加内容前，请先搜索确认是否有相似内容已经存在</span>
          </form>
        </div>    
        <div class="tags-mini partition">
        	<a href="/knowledge/index">全部</a><a href="/knowledge/index?tag_name=1">人力</a>
        	<a href="/knowledge/index?tag_name=2">财务</a><a href="/knowledge/index?tag_name=3">通用</a>
        	<a href="/knowledge/index?tag_name=4">我发表的主题</a>
   		</div>
        <ul> 
        <? foreach($list as $li){ ?>
          <li class="partition-lighter">
              <div>
                  <div class="left"> 
                   <h6><a href="/knowledge/view?id=<?=$li['knowledge_id']?>"><?=$li['subject'] ?></a><? if($li['atta_count'] > 0){ ?><span>[附]</span><? } ?></h6>
                  <?=$li['message'] ?><br /> 
                  </div>
                  <div class="right">
                      <div class="avatar center">
                        <img src="<?=get_avatar($li['user_id'])?>"/><br />
                        <a href="#"><?=$li['username'] ?></a>
                      </div>
                  </div>
                  <div class="clear"></div>
              </div>
          </li> 
        <? } ?>          
        </ul>
 	</div>
<include path="footer" />